package com.zx.mes.test.hyl.feign.impl;

import com.zx.mes.test.hyl.feign.HelloClient;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * 测试 feign fallback
 * @author hyl
 * @date 2018-3-6
 */
@Component
public class HelloClientFallbackFactory implements FallbackFactory<HelloClient> {
    @Override
    public HelloClient create(Throwable cause) {
        return () -> "快速失败";
    }
}
